package factory.impl;

import factory.LoggerFactory;
import service.impl.DatabaseLogger;
import service.Logger;

/**
 * 数据库日志记录器工厂 - 具体创建者
 */
public class DatabaseLoggerFactory extends LoggerFactory {
    private String connectionString;
    
    public DatabaseLoggerFactory(String connectionString) {
        this.connectionString = connectionString;
    }
    
    @Override
    public Logger createLogger() {
        return new DatabaseLogger(connectionString);
    }
}